package ldk.easytouch.interfaces;

import android.support.annotation.NonNull;
import android.view.KeyEvent;
import android.view.View;
import android.view.WindowManager;

/**
 * Activity接口
 * 用于仿照Android原生的Activity
 * Created by ldkxingzhe on 2016/9/13.
 */
public interface IActivity {
    void onCreate();
    boolean onUpdateWindowLayoutParams(@NonNull WindowManager.LayoutParams params);
    void onResume();
    void onPause();
    void onStop();
    void onDestroy();
    void finish();
    void onTouchOutside();
    void onKeyDown(int keyCode, KeyEvent event);
    void setContentView(@NonNull View view, int width, int height);
    void setContentView(@NonNull View view);
    View getContentView();
}
